const accountInfo = wx.getAccountInfoSync();

let env = {
  baseUrl:''
}

switch(accountInfo.miniProgram.envVersion){
  case '1':
    console.log(1)
  case '2':
    console.log(2)
  case '3':
    console.log(2)

}

export default env